import React from 'react';
import ReactDOM from 'react-dom/client';

// 创建类组件
class Hello extends React.Component {
  render() {
    return <div>Hello React Class Component</div>;
  }
}

// Hello 组件写入到 #root 中
ReactDOM.createRoot(document.getElementById('root')).render(<Hello />);
